package cn.fzm.service.impl;

import cn.fzm.dao.AccountDao;
import cn.fzm.domain.Account;
import cn.fzm.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Dremeue
 * @create 2019/10/8 12:49
 **/
@Service("accountService")
public class AccountServiceImpl implements AccountService {

    @Autowired
    private AccountDao accountDao;

    @Override
    public List<Account> findAll() {
        List<Account> list = accountDao.findAll();
        return list;
    }

    @Override
    public void saveAccount(Account account) {
       accountDao.saveAccount(account);
    }
}
